Back to index

CL-Markdown

Here's a simple block:

foo

This should be a code block, though:

<div>  
        foo  
</div> 

As should this:

<div>foo</div> 

Now, nested:

foo

This should just be an HTML comment:

Multiline:

Code block:

<!-- Comment --> 

Just plain comment, with trailing spaces on the line:


Code:

<hr /> 

Hr's:












Markdown

Here's a simple block:

foo

This should be a code block, though:

<div>
    foo
</div>

As should this:

<div>foo</div>

Now, nested:

foo

This should just be an HTML comment:

Multiline:

Code block:

<!-- Comment -->

Just plain comment, with trailing spaces on the line:

Code:

<hr />

Hr's:










HTML Difference

Insert: 6, Delete: 6, Replace 0

Here's a simple block:

foo

This should be a code block, though:

<div>
<div>  
    foo
</div>
    foo  
</div> 

As should this:

<div>foo</div>
<div>foo</div> 

Now, nested:

foo

This should just be an HTML comment:

Multiline:

Code block:

<!-- Comment -->
--> 

Just plain comment, with trailing spaces on the line:


Code:

<hr />
/> 

Hr's:












HTML from CL Markdown

<p>
Here's a simple block:</p>

<div>
foo</div>

<p>
This should be a code block, though:</p>

<pre>

<code>
&lt;div&gt;  
        foo  
&lt;/div&gt; 
</code>

</pre>

<p>
As should this:</p>

<pre>

<code>
&lt;div&gt;foo&lt;/div&gt; 
</code>

</pre>

<p>
Now, nested:</p>

<div>

<div>

<div>
foo</div>

</div>

</div>

<p>
This should just be an HTML comment:</p>

<p>
<!-- Comment -->
</p>

<p>
Multiline:</p>

<p>
<!-- Blah Blah -->
</p>

<p>
Code block:</p>

<pre>

<code>
&lt;!-- Comment --&gt; 
</code>

</pre>

<p>
Just plain comment, with trailing spaces on the line:</p>

<p>
<!-- foo -->
<br>
</p>

<p>
Code:</p>

<pre>

<code>
&lt;hr /&gt; 
</code>

</pre>

<p>
Hr's:</p>

<hr>

<hr>

<hr>

<hr>

<br>

<hr>

<br>

<hr>

<hr class="foo" id="bar">

<hr class="foo" id="bar">

<hr class="foo" id="bar">

Original source

Here's a simple block:

<div>

	foo
</div>


This should be a code block, though:

	<div>

		foo
	</div>


As should this:

	<div>
foo</div>


Now, nested:

<div>

	<div>

		<div>

			foo
		</div>

	</div>

</div>


This should just be an HTML comment:

<!-- Comment -->


Multiline:

<!--
Blah
Blah
-->


Code block:

	<!-- Comment -->


Just plain comment, with trailing spaces on the line:

<!-- foo -->
   

Code:

	<hr />

	
Hr's:

<hr>


<hr/>


<hr />


<hr>
   

<hr/>
  

<hr />
 

<hr class="foo" id="bar" />


<hr class="foo" id="bar"/>


<hr class="foo" id="bar" >